package com.xdja.myapplication.demo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import com.xdja.myapplication.R
import com.xdja.myapplication.adapter.RecyclerViewAdapter
import kotlinx.android.synthetic.main.activity_montionlayout_folding_toolbar.*

class SlideFollowFixActivity : AppCompatActivity() {
    private var data = arrayListOf<String>()
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_motionlayout_slide_follow_fix)
        for(index in 1 until  20){
            data.add("index$index")
        }
        list.layoutManager=LinearLayoutManager(this)
        list.adapter=RecyclerViewAdapter(data)

    }
}
